from tkinter import *
window = Tk()
group = LabelFrame(window,text = "数字列表")
group.pack()
NUMBER = [("one",1),("two",2),("three",3),("four",4)]
v = IntVar()
v.set(1)
for a,num in NUMBER:
    b = Radiobutton(group,text = a,variable = v,value = num)
    b.pack(anchor = W)
Label(group,textvariable = v).pack()
mainloop()
